.calendar-page {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 2rpx 0 20rpx #fff;
  width: 90vw;
  height: 55vh;
  overflow: hidden;
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  .wth {
    width: 200rpx;
  }

  .title-bar {
    display: flex;
    align-items: center;
    padding: 20rpx;
    border-bottom: 2rpx solid #eceaea;

    .left {
      color: #888;
    }

    .mid {
      flex: 1;
      text-align: center;
    }

    .right {
      text-align: right;
      color: #3C89FF;
    }
  }

  .mth-bar {
    display: flex;
    align-items: center;
    padding: 30rpx 20rpx;
    margin-top: 10rpx;

    .mth-btn {
      display: inline-block;
      border: 2rpx solid #ddd;
      border-radius: 6rpx;
      color: #666;
      padding: 10rpx 20rpx;
    }

    .left {
    }

    .mid {
      flex: 1;
      text-align: center;

      .today{
        background-color: #f2a43a;
          color: #fff;
          font-size: 22rpx;
          margin-right: 20rpx;
          margin-left: -20rpx;
          padding: 2rpx 6rpx;
          border-radius: 4rpx;
      }
    }

    .right {
      text-align: right;
    }
  }

  .week-bar {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 2rpx;
    background-color: #F7F7F7;
    border: 2rpx solid #EFEFEF;

    view {
      flex: 1;
      height: 80rpx;
      line-height: 80rpx;
      margin-top: 2rpx;
      border-right: 2rpx solid #fff;

      &:last-child {
        border-right: none;
      }
    }
  }

  .calendar-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 150rpx);
    grid-row-gap: 2rpx;
    grid-column-gap: 2rpx;
    padding: 2rpx 2rpx 10rpx;
    margin-bottom: 30rpx;
    overflow: hidden;
    overflow-y: auto;

    .calendar-block {
      position: relative;
      display: flex;
      align-items: center;
      background-color: #F7F7F7;
      font-size: 24rpx;
      text-align: center;
      overflow: hidden;
      border-radius: 6rpx;
      transition: background-color .3s;

      .block-item {
        margin: 0 auto;
        transform: scale(.8);
        transition: transform .3s;

        .date {
          font-size: 24rpx;
          margin-bottom: 16rpx;

          .month {
            color: #adadad;
            font-size: 18rpx;
          }

          .normal-date{
            color: #666;
          }
          .disabled-date{
            color: #c3c3c3;
          }
          .disabled-normal-date{
            color: #666;
          }
        }

        .red {
          color: #f30;
        }

        .date-scenic {
          font-size: 24rpx;
          margin-bottom: 6px;

          .month {
            color: #adadad;
            font-size: 18rpx;
          }

          .disabled-date {
            color: #c3c3c3;
          }
        }
        .date-info{
          transform: scale(.85);
        }
        .date-info-scenic {
          transform: scale(.85);
        }
        .date-info-disabled{
          color: #c3c3c3;
        }

        .red-scenic {
          color: #f30;
          margin-top: 10rpx;
        }
      }

      .mgtp4 {
        margin-top: 8rpx;
      }

      .mgtp8 {
        margin-top: 16rpx;
      }

      &.active {
        background-color: #F2A43A;
        color: #fff;

        .block-item {
          transform: scale(.9);

          .date{
            .normal-date{
              color: #fff;
            }
            .disabled-date{
              color: #fff;
            }
          }
          .date-info-disabled{
            color: #fff;
          }
        }
      }

      &.stayActive {
        background-color: #F2A43A;
        color: #fff;

        .block-item {
          transform: scale(.95);

          .date{
            .normal-date{
              color: #fff;
            }
            .disabled-date{
              color: #fff;
            }
          }
          .date-info-disabled{
            color: #fff;
          }
        }
      }

      &.stayActive-scenic {
        background-color: #F2A43A;
        color: #fff;

        .block-item {
          transform: scale(.95);
        }
      }

      &.outStayActive {
        background-color: #F2A43A;
        color: #fff;
        opacity: .5;

        .block-item {
          transform: scale(.95);

          .date{
            .normal-date{
              color: #fff;
            }
            .disabled-date{
              color: #fff;
            }
          }
          .date-info-disabled{
            color: #fff;
          }
        }
      }

      .reserve {
        position: absolute;
        width: 100%;
        height: 40rpx;
        line-height: 44rpx;
        background-color: #3C89FF;
        top: -6rpx;
        right: -37%;
        transform: rotate(45deg);
        z-index: 1;
      }

      .rs-out {
        color: #ff0;
      }
    }
  }

  .empty-calendar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    color: #c9c9c9;
    height: 20vh;
  }

  .empty-calendar-scenic {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    color: #c9c9c9;
  }
}

.cal-show {
  bottom: 0;
}
